export default defineAppConfig({
  pages: ["pages/index/index", "pages/login/login", "pages/setting/setting"],
  //分包 代码尽量写在分包下面 避免打包后体积过大 分包满了可以继续新增分包
  subPackages: [
    {
      root: "packageA",
      pages: [
        "pages/test/test",
        "pages/echart/echart",
        "pages/about/index",
        "pages/feedback/index",
        "pages/theme/index",
        "pages/profile/index",
        "pages/security/index",
        "pages/select/index",
      ],
    },
  ],
  window: {
    backgroundTextStyle: "@backgroundTextStyle",
    navigationBarBackgroundColor: "@navBgColor",
    navigationBarTitleText: "WeChat",
    navigationBarTextStyle: "@navTxtStyle",
    backgroundColor: "@bgColor",
  },
  darkmode: true,
  themeLocation: "theme.json",
  tabBar: {
    custom: true,
    color: "#666",
    selectedColor: "#00508e",
    backgroundColor: "#fff",
    list: [
      {
        pagePath: "pages/index/index",
        text: "首页",
        iconPath: "./assets/images/home.png",
        selectedIconPath: "./assets/images/home-o.png",
      },
      {
        pagePath: "pages/setting/setting",
        text: "设置",
        iconPath: "./assets/images/setting.png",
        selectedIconPath: "./assets/images/setting-o.png",
      },
    ],
  },
});
